﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace GrouponDesktop.AbmProveedor
{
    public partial class BajaProv : Form
    {
        private int idProv;
        
        public BajaProv(int id)
        {

            this.idProv = id;
            InitializeComponent();
        }

        private void b_SI_Click(object sender, EventArgs e)
        {
            BDConnection.execute("EXEC CodingSpree.bajaLogicaProv " + this.idProv);
            MessageBox.Show("Baja Efectuada");
            Hide();
        }

        private void b_NO_Click(object sender, EventArgs e)
        {
            Hide();
        }

       
    }
}
